Configure a Virtual Service
About this task
Perform this procedure to configure a virtual service on the switch.
Note
-
Following procedure lists the general sequence to configure a virtual service.
-
The names of Ethernet ports appearing in a specific Virtual Machine (VM) are not correlated to the configured virtual port names. Each VM renames the Ethernet ports as per its requirements, after they are discovered during the VM initialization.
-
By default, the system displays all virtual ports of OVS connection type first in the alphabetical order of their configured names, followed by the virtual ports of SR-IOV and VT-d connection types.
Before you begin
-
You must enable trunking on the Extreme Integrated Application Hosting (IAH) port when you use SR-IOV and OVS connection types. For more information about enabling trunking, see MultiLink Trunking and Split MultiLink Trunking.
-
Ensure the switch has the Ethernet drivers installed as per the SR-IOV standard, to support the VT-d and the SR-IOV connection type for the configured virtual ports.
Procedure
Example
Configuring the TPVM virtual service using IAH port 1/s1 with an SR-IOV connection type:
Switch:1>enable Switch:1#configure terminal Switch:1(config)#interface GigabitEthernet 1/s1 Switch:1(config-if)#encapsulation dot1q Switch:1(config-if)#exit Switch:1(config)#vlan create 10 name tpvm-lan-vlan type port-mstprstp 0 Switch:1(config)#vlan members add 10 1/s1,1/6/2 Switch:1(config)#interface GigabitEthernet 1/s1,1/6/2 Switch:1(config-if)#no shutdown Switch:1(config-if)#exit Switch:1(config)#virtual-service tpvm vport eth0 connect-type sriov Switch:1(config)#virtual-service tpvm vport eth0 vlan 10 Switch:1(config)#virtual-service tpvm enable
Configuring the TPVM virtual service on IAH port 1/s2 with a VT-d connection type:
Switch:1>enable Switch:1#configure terminal Switch:1(config)#vlan create 10 type port-mstprstp 0 Switch:1(config)#vlan member add 10 1/1,1/s2 Switch:1(config)#interface GigabitEthernet 1/s2,1/1 Switch:1(config-if)#no shutdown Switch:1(config-if)#exit Switch:1(config-if)virtual-service tpvm vport eth0 port 1/s2 Switch:1(config)#virtual-service tpvm enable
Variable Definitions
The following table defines parameters for the vlan create command.
Variable |
Value |
---|---|
<2-4059> |
Specifies the VLAN ID in the range of 2 to 4059. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1. By default, the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. |
color<0–32> |
Specifies the color of the VLAN. |
nameWORD<0-64> |
Specifies a name for the VLAN to be created. |
type {port-mstprstp<0-63>} |
Creates a VLAN by port, with the STP instance ID ranging from 0 to 63. Note:
MSTI instance 62 is reserved for SPBM if SPBM is enabled on the switch. |
The following table defines parameters for the vlan members command.
Variable |
Value |
---|---|
<1-4059> |
Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1. |
{slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} |
Identifies the
slot and port in one of the following formats:
|
add |
Adds ports to a specified VLAN ID. |
The following table defines parameters for the virtual-service command.
Variable |
Value |
---|---|
WORD<1-128> |
Specifies a name for virtual service. |
connect-type {ovs | sriov | vtd} |
Specifies the connection type for the virtual port created. The default is VT-d. The switch supports the following maximums for virtual ports:
|
disk WORD<1-32> |
Specifies the disk assigned to the virtual service. |
mem-size <1-5120> |
Specifies the memory size in Megabytes assigned to the virtual service. The default value is 1024 Megabytes. |
nic-type [virtio | e1000] |
Specifies the Virtual Port NIC type. The default is e1000. Note:
Configure this value only when the connect-type parameter is ovs. |
num-cores <num_cores> |
<num_cores> specifies
the number of cores assigned to the virtual service. Different
platforms support different ranges.
Note:
5720-24MXW and 5720-48MXW support <1-2> cores. 7520 Series and 7720 Series support <1-6> cores. The default value is 1. |
port WORD<1-32> |
Specifies the name of the Extreme Integrated Application
Hosting (IAH) port
associated with the virtual port. Depending on the hardware, the
switch can support the following IAH ports:
|
size <1-30> |
Specifies the size of the disk in Gigabytes. |
vlan <1–4096> |
Specifies the VLAN ID used by the virtual port. |
vport WORD<1-32> |
Specifies the name of the virtual port. |